package com.itheima.thread02;

public class Demo {
    public static void main(String[] args) {
        //参数
        MyRunnable mr = new MyRunnable();
        //创建线程对象
        Thread tr = new Thread(mr);
        //开启线程
        tr.start();
        //创建线程对象2
        Thread tr1 = new Thread(mr);
        //开启线程2
        tr1.start();

    }
}
